package handler

import (
	"github.com/gin-gonic/gin"
	"log"
	"onerk4/zk1/api/enit/response"
	"onerk4/zk1/dao"
)

func OrderList(c *gin.Context) {
	userId := c.GetUint("userId")

	order, err := dao.QueryOrderByUid(userId)
	if err != nil {
		log.Println("订单查询失败", err.Error())
		return
	}

	response.SuccessResponse(c, "ok", order)

}
